﻿///**
// * 
// * Copyright 2009 Mike Jamer [email: mikejamer@gmail.com ]
// * 
// * This File is part of Moose IRC
// * 
// * MooseIRC is free software: you can redistribute it and/or modify
// * it under the terms of the GNU Lesser General Public License as published by
// * the Free Software Foundation, either version 3 of the License, or
// * (at your option) any later version.
// * 
// * MooseIRC is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// * GNU General Public License for more details.
// * 
// * You should have received a copy of the GNU General Public License
// * along with MooseIRC.  If not, see <http://www.gnu.org/licenses/>.
// * 
// */

//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//namespace moose.irc.standard
//{
//    [CLSCompliant(true)]
//    [Command(
//        name = "Nickname Command",
//        description = "copys the nickname to the server settings prior to sending the nickname command",
//        author = "Mike MacKenzie-Jamer <email: mikejamer@gmail.com>",
//        version = "0.1")]
//    [Trigger(TriggerText = "nick")]
//    [Trigger(TriggerText = "NICK")]
//    public sealed class NickCommand : IrcAction
//    {
//        protected override IrcState valid_states()
//        {
//            return IrcState.Connected | IrcState.Registered;
//        }

//        protected override void action(IrcClient client, IrcMessage input)
//        {

//            //TODO: Review the fact that, if a nicname is already in use, we must revert back to our original nickname
//            //This will be handled by that particular response I suppose...

//            client.setServerSetting("nick", input.Arguments[0]);
//            //client.send("/NICK " + input.Arguments[0]);

//            //This is why I need to be able to resume processing, instead of just taking over entirely, 
//            //in some cases, we just want to append something here
//            return;
//        }
//    }
//}
